package com.gitee.qdbp.base.converter;

import java.util.Date;
import org.springframework.core.convert.converter.Converter;
import com.alibaba.fastjson.util.TypeUtils;

/**
 * 日期转换
 *
 * @author 龚健
 * @author zhaohuihua 修改为TypeUtils.castToDate
 * @version 150303
 */
public class DateConverter implements Converter<String, Date> {

    @Override
    public Date convert(String source) {
        return TypeUtils.castToDate(source);
    }

}
